package user;

public abstract class User {
    protected String name;
    protected int userId;
    protected String role;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", userId=" + userId +
                ", role='" + role + '\'' +
                '}';
    }

    public User(String name, int userId, String role) {
        this.name = name;
        this.userId = userId;
        this.role = role;
    }

    public abstract int display();

}
